20 augustus 2017

Background

This peer assessed assignment has two parts. First, you will create a Shiny application and deploy it on Rstudio's servers. Second, you will use Slidify or Rstudio Presenter to prepare a reproducible pitch presentation about your application.

Introduction

This application uses diamonds data from ggplot2 and has the function to predict the price of a diamond depending of its properties.

  • Carat size
  • Cut level
  • Color type
     carat               cut        color         price      
 Min.   :0.2000   Fair     : 1610   D: 6775   Min.   :  326  
 1st Qu.:0.4000   Good     : 4906   E: 9797   1st Qu.:  950  
 Median :0.7000   Very Good:12082   F: 9542   Median : 2401  
 Mean   :0.7979   Premium  :13791   G:11292   Mean   : 3933  
 3rd Qu.:1.0400   Ideal    :21551   H: 8304   3rd Qu.: 5324  
 Max.   :5.0100                     I: 5422   Max.   :18823  
                                    J: 2808                  

Plot

Application functionality

You can select specific features of the diamond (carat, cut, color). The model will predict the price of the diamond based on the according features.

Below the link for application:[APP Link] (https://derekgeng.shinyapps.io/shinyapp/)

Source Code

  • ui.R
  • server.R

Both files can be found here: GitHub repo